package com.andaily.domain.dto.developer;

import com.andaily.domain.developer.SprintStatus;
import com.andaily.domain.shared.paginated.DefaultPaginated;

import java.util.Map;

/**
 * Date: 13-8-30
 *
 * @author Shengzhao Li
 */
public class SprintOverviewDto extends DefaultPaginated<SprintDto> {

    private SprintStatus status;

    public SprintOverviewDto() {
    }

    public Map<String, Object> queryMap() {
        Map<String, Object> map = super.defaultQueryMap();
        map.put("status", status);
        return map;
    }

    public SprintStatus[] getAvailableStatuses() {
        return SprintStatus.values();
    }

    public SprintStatus getStatus() {
        return status;
    }

    public void setStatus(SprintStatus status) {
        this.status = status;
    }
}
